﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcTasks.Models
{
    public interface ITaskDBContext : IDisposable
    {
        DbSet<RandomTask> RandomTask { get; set; }
        DbSet<Genre> Genre { get; set; }
        int SaveChanges();
        DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class;
        ObjectContext ThisObjectContext { get;  }
    }
}
